/*
  ODASensor.cpp - 
*/

#include "ODASensor.h"
#include "ODPort.h"
#include "WProgram.h"
#include "ODADebug.h"

Sensor::Sensor() {
  return;
}

void Sensor::init(uint8_t pin) {
  _pin=pin;
  _sensor.initInput(_pin);
  reset();
}

uint8_t Sensor::getStatus() {
  return _sensor.getStatus();
}

uint8_t Sensor::getPort() {
  return _pin;
}

void Sensor::reset() {
  _sensor.setStatus(HIGH);
}

void Sensor::setPlace(uint8_t place) {
  _place=place;
}

uint8_t Sensor::getPlace() {
  return _place;
}
